.class Lcom/estrongs/android/pop/wxapi/h$a;
.super Ljava/lang/Object;
.source "WxApiManager.java"

# interfaces
.implements Lokhttp3/Callback;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/estrongs/android/pop/wxapi/h;->a(Ljava/lang/String;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/estrongs/android/pop/wxapi/h;


# direct methods
.method constructor <init>(Lcom/estrongs/android/pop/wxapi/h;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/pop/wxapi/h$a;->a:Lcom/estrongs/android/pop/wxapi/h;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onFailure(Lokhttp3/Call;Ljava/io/IOException;)V
    .locals 0
    .param p1    # Lokhttp3/Call;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .param p2    # Ljava/io/IOException;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    .line 1
    iget-object p1, p0, Lcom/estrongs/android/pop/wxapi/h$a;->a:Lcom/estrongs/android/pop/wxapi/h;

    const/4 p2, 0x1

    invoke-static {p1, p2}, Lcom/estrongs/android/pop/wxapi/h;->a(Lcom/estrongs/android/pop/wxapi/h;I)V

    return-void
.end method

.method public onResponse(Lokhttp3/Call;Lokhttp3/Response;)V
    .locals 1
    .param p1    # Lokhttp3/Call;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .param p2    # Lokhttp3/Response;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    .line 1
    invoke-virtual {p2}, Lokhttp3/Response;->isSuccessful()Z

    move-result p1

    if-eqz p1, :cond_1

    .line 2
    invoke-virtual {p2}, Lokhttp3/Response;->body()Lokhttp3/ResponseBody;

    move-result-object p1

    const/4 p2, 0x2

    if-nez p1, :cond_0

    .line 3
    iget-object p1, p0, Lcom/estrongs/android/pop/wxapi/h$a;->a:Lcom/estrongs/android/pop/wxapi/h;

    invoke-static {p1, p2}, Lcom/estrongs/android/pop/wxapi/h;->a(Lcom/estrongs/android/pop/wxapi/h;I)V

    return-void

    .line 4
    :cond_0
    :try_start_0
    invoke-virtual {p1}, Lokhttp3/ResponseBody;->string()Ljava/lang/String;

    move-result-object p1

    .line 5
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0, p1}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 6
    iget-object p1, p0, Lcom/estrongs/android/pop/wxapi/h$a;->a:Lcom/estrongs/android/pop/wxapi/h;

    invoke-static {p1, v0}, Lcom/estrongs/android/pop/wxapi/h;->a(Lcom/estrongs/android/pop/wxapi/h;Lorg/json/JSONObject;)V
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_1
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    :catch_0
    move-exception p1

    goto :goto_0

    :catch_1
    move-exception p1

    .line 7
    :goto_0
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    .line 8
    iget-object p1, p0, Lcom/estrongs/android/pop/wxapi/h$a;->a:Lcom/estrongs/android/pop/wxapi/h;

    invoke-static {p1, p2}, Lcom/estrongs/android/pop/wxapi/h;->a(Lcom/estrongs/android/pop/wxapi/h;I)V

    goto :goto_1

    .line 9
    :cond_1
    iget-object p1, p0, Lcom/estrongs/android/pop/wxapi/h$a;->a:Lcom/estrongs/android/pop/wxapi/h;

    const/4 p2, 0x1

    invoke-static {p1, p2}, Lcom/estrongs/android/pop/wxapi/h;->a(Lcom/estrongs/android/pop/wxapi/h;I)V

    :goto_1
    return-void
.end method
